package com.project2.service;

import com.project2.bean.bo.WxAddressSaveBo;
import com.project2.bean.po.MarketAddress;
import com.project2.bean.vo.DataInWxAddressDetailVo;
import com.project2.bean.vo.DataInWxAddressListVo;

/**
 * @author zhangminghui
 * @date 2022/8/15
 */
public interface WxAddressService {

    DataInWxAddressListVo queryDataInWxAddressListVo(Integer currentUserId);

    DataInWxAddressDetailVo queryDataInWxAddressDetailVo(Integer id);

    void saveAddressInfoByBo(WxAddressSaveBo wxAddressSaveBo,Integer currentUserId);

    void updateAddressInfoByBo(WxAddressSaveBo wxAddressSaveBo);

    Integer queryDataInWxAddressSaveVo(WxAddressSaveBo wxAddressSaveBo,Integer currentUserId);

    void deleteAddressInfoById(Integer id);

    MarketAddress queryAddressByisDefaultAndDeletedAndUserId(Integer isDefault, boolean deleted,Integer currentUserId);

    void updateCurrentAddressInfoByIdAndisDefault(Integer id, boolean isDefault);

}
